<!--#layout("/common/space.page.html",{"jsBase":"/js/space/news/","title":"首页"}){  -->

<form class="layui-form layui-form-pane" id="updateForm">
	<div class="layui-row">
		<div class="layui-row">
			<div class="layui-form-item">
				<label class="layui-form-label">标题</label>
				<div class="layui-input-block">
					<input type="text" name="title" autocomplete="off" placeholder="请输入标题" class="layui-input" value="${article.title! }">
				</div>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">所在栏目</label>
				<layui:catalogInput style='layui-input-inline' name="catalogId" id="catalogId" value="${article.catalogId!parseLong(parameter.catalogId!0) }"></layui:catalogInput>
			</div>
		</div>
	</div>
	<!--# if (false) {  -->
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">城市选择</label>
			<div class="layui-input-block">
				<layui:areaSelect style='' itemId="area"></layui:areaSelect>
			</div>
		</div>
	</div>
	<!--# }  -->
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">关键字</label>
			<div class="layui-input-block">
				<input type="text" name="keywords" class="layui-input" value="${article.keywords! }" />
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">描述</label>
			<div class="layui-input-block">
				<input type="text" name="description" class="layui-input" value="${article.description! }" />
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">url</label>
			<div class="layui-input-block">
				<input type="text" name="url" class="layui-input" value="${article.url! }">
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">顺序</label>
				<div class="layui-input-inline">
					<input type="text" name="seq" class="layui-input" value="${article.seq! }" />
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">显示时间</label>
				<div class="layui-input-inline">
					<input type="text" id="showTime" name="showTime" value="${article.showTime!," yyyy-MM-dd"}"   class="layui-input input-date">
				</div>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<layui:attachment name="attachmentId" batchFileUUID="${article.attachmentId!uuid()}" isNew="false" bizId="${article.id! }" bizType="CoreArticle" />
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">内容</label>
			<div class="layui-clear">
				<textarea id="layedit" class="kindEditor" name="content" style="display: none">${article.content! }</textarea>
			</div>
		</div>
	</div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
	<input type="hidden" name="id" value="${article.id!}" /> <input type="hidden" name="delFlag" value="${article.delFlag!0}" />
	<div class="layui-row">
		<div class="layui-form-item">
			<button class="layui-btn layui-btn-danger" type="button" id="${id}" lay-submit lay-filter="form">${text!"保存"}</button>
			<button class="layui-btn" type="button" id="${id}-cancel">取消</button>
		</div>
	</div>
</form>
<script>
	layui.use([ 'edit' ], function() {
		var newsEdit = layui.edit;
		newsEdit.init();
	});
</script>
<!--#} -->
